package org.jsoft.constants;

import java.awt.image.BufferedImage;

import org.jsoft.util.ImageUtil;

public class ImageConstants {

	public static BufferedImage[] solarArr;
	public static BufferedImage[] earthArr;
	public static BufferedImage[] blastArr;
	
	static{
		solarArr = ImageUtil.getImageArr(Constants.SOLAR_PATH);
		if(solarArr != null && solarArr.length > 0){
			for(int i = 0; i < solarArr.length; i++){
				solarArr[i] = ImageUtil.updateSize(solarArr[i], Constants.SOLAR_WIDTH, Constants.SOLAR_HEIGHT);
			}
		}
		earthArr = ImageUtil.getImageArr(Constants.EARTH_PATH);
		if(earthArr != null && earthArr.length > 0){
			for(int i = 0; i < earthArr.length; i++){
				earthArr[i] = ImageUtil.updateSize(earthArr[i], Constants.EARTH_WIDTH, Constants.EARTH_HEIGHT);
			}
		}
		blastArr = ImageUtil.getImageArr(Constants.BLAST_PATH, "gif");
	}
	
	
	public static BufferedImage bg = ImageUtil.getImage(Constants.BG);
	
}
